﻿using System;
using System.Collections.Generic;
using System.Text;

namespace NGCDS
{
    public static class StringExtension
    {
        public static string CharsToString(char[] chars)
        {
            return new string(chars);
        }


        public static string limit(this string src, int count)
        {
            int len = src.Length;
            return (len > count) ? src.Substring(0, count - 3) + "..." : src;
        }
    }
}
